package com.hc.demo.domain;

import io.swagger.annotations.ApiModel;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Getter;
import lombok.NoArgsConstructor;
import lombok.Setter;
import lombok.ToString;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;

@ApiModel(value = "com-hc-domain-Dept")
@Getter
@Setter
@ToString
@Builder
@AllArgsConstructor
@NoArgsConstructor
@Entity(name = "tb_dept")
public class JpaDept {
    @Id
    @GeneratedValue(strategy = GenerationType.IDENTITY)
    private int deptno;
    @Column
    private String dname;
    @Column
    private String loc;
}
